import request from '@/utils/request'

// 用电单位列表
export const getCompanyListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/basic/energyType/getCompanyList', { params })

export const getPageListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/device/exception/message/page', { params })

// 新增异常信息
export const addExceptionMessageApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/device/exception/message/add', data,
    { headers: { 'Content-Type': 'multipart/form-data' } })

// 修改异常信息
export const editExceptionMessageApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/device/exception/message/update', data,
    { headers: { 'Content-Type': 'multipart/form-data' } })

// 删除异常信息
export const delExceptionMessageApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/device/exception/message/delete', data,
    { headers: { 'Content-Type': 'multipart/form-data' } })